package com.pucong.gitee.database.backup.common.entity.redis;

import com.pucong.gitee.database.backup.common.selfenum.CommonBoolenEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class RedisConnect {

    @ApiModelProperty("主键")
    private String uuid;

    @NotBlank
    @ApiModelProperty("连接名称")
    private String text;

    @NotBlank
    @ApiModelProperty("IP地址")
    private String rHost;

    @NotNull
    @ApiModelProperty(value = "端口号",example = "1")
    private Integer rPort;

    @ApiModelProperty("密码")
    private String rPass;

    @ApiModelProperty("连接名")
    private String sName;

    @ApiModelProperty("IP地址")
    private String sHost;

    @ApiModelProperty(value = "ssh端口",example = "1")
    private Integer sPort;

    @ApiModelProperty("ssh密码")
    private String sPass;

    @ApiModelProperty("ssh登录私钥")
    private String sPkey;

    @ApiModelProperty("是否启用ssl")
    private CommonBoolenEnum onSsl;

    @ApiModelProperty("是否集群：0单机，1集群")
    private CommonBoolenEnum isHa;

    @ApiModelProperty("类型：0默认，1：ssh")
    private CommonBoolenEnum connectType;

}
